//
//  CarViewController.m
//  YouWen
//
//  Created by 刘永和 on 15/3/9.
//  Copyright (c) 2015年 刘永和. All rights reserved.
//

#import "CarViewController.h"
#import "SCNavTabBarController.h"
#import "MJRefresh.h"
#import "AFNetworking.h"
@interface CarViewController ()

@end

@implementation CarViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
    self.view.backgroundColor = [UIColor whiteColor];

    CarNewsViewController *carNewsVC = [[CarNewsViewController alloc]init];
    carNewsVC.title = @"新闻";
    ShoppingViewController *shoppingVC = [[ShoppingViewController alloc]init];
    shoppingVC.title = @"导购";
    TextViewController *textVC = [[TextViewController alloc]init];
    textVC.title = @"测评";
    NewCarViewController *newCarVC = [[NewCarViewController alloc]init];
    newCarVC.title = @"新车";
    RefitViewController *refitVC = [[RefitViewController alloc]init];
    refitVC.title = @"改装";
    SUVContrastViewController *suvContrastVC = [[SUVContrastViewController alloc]init];
    suvContrastVC.title = @"SUV对比";
    
    SCNavTabBarController *navTabBarController = [[SCNavTabBarController alloc]init];
    navTabBarController.subViewControllers = @[carNewsVC, shoppingVC, textVC, newCarVC, refitVC, suvContrastVC];
    navTabBarController.showArrowButton = YES;
    [navTabBarController addParentController:self];
    
    
    
    
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
